<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <!-- iPhone, iPad and Android specific settings -->
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1;" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>

        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/custom.css" media="screen" />       
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/main.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/theme/theme_base.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/jqueryui.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/buttons.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/grid.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/themes/adminica/css/text.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="/js/tipTip/tipTip.css" media="screen" />

        <!--[if IE 6]><link rel="stylesheet" type="text/css" href="/themes/adminica/css/ie6.css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" type="text/css" href="/themes/adminica/css/ie.css" media="screen" /><![endif]-->
        <script type="text/javascript" src="/js/tipTip/jquery.tipTip.minified.js"></script>
        <?php Yii::app()->publishAndRegisterScriptFile(Yii::getPathOfAlias('common') . '/javascripts/app.js', CClientScript::POS_HEAD); ?>
        <?php Yii::app()->publishAndRegisterScriptFile(Yii::app()->basePath . '/javascripts/app.' . $this->id . '.js'); ?>
        <?php Yii::app()->publishAndRegisterScriptFile(Yii::app()->basePath . '/javascripts/app.' . $this->id . '.' . $this->action->id . '.js'); ?>
    </head>

    <?php
    $iPad = strpos($_SERVER['HTTP_USER_AGENT'], 'iPad');
    ?>
    <body id="<?php echo $this->id . '-' . $this->action->id; ?>" orient="portrait">
        <div id="wrapper" class="<?php echo ($iPad ? "ipad" : ""); ?>">
            <?php echo $content; ?>
        </div>
    </body>
</html>